<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>0709</title>
</head>

<body>
    <script>
        ! function () {
            let url = 'http://item.taobao.com/item.htm?a=1&b=2&c=&d=xxx&e';
            let parameter = url.split('?')[1];
            let ary = parameter.split('&');
            let obj = {};
            for (let i = 0; i < ary.length; i++) {
                let newary = ary[i].split('=');
                obj[newary[0]] = newary[1]
            }
            console.log(JSON.parse(JSON.stringify(obj)))
        }()
    </script>
</body>

</html>